#include"list1.cpp"
Line::Line(Point xp1, Point xp2) :p1(xp1), p2(xp2)
{
	double x = static_cast<double>(p1.x - p2.x);
	double y = static_cast<double>(p1.y - p2.y);
	len = sqrt(x * x + y * y);
	cout << "construct line" << endl;
}
Line::Line(Line& l) :p1(l.p1), p2(l.p2)
{
	len = l.len;
	cout << "copy construct" << endl;
}
double Line::getLen()
{
	return len;
}
Line::~Line()
{
	cout << "deconstruct" << endl;
}